
<div class="table">
        <img src="image/bg-th-left.gif" width="8" height="7" alt="" class="left" />
        <img src="image/bg-th-right.gif" width="7" height="7" alt="" class="right" />
        <table class="listing" cellpadding="0" cellspacing="0">
                <tr class="first" width="177">
                        <th>Codigo</th>
                        <th>Recurso</th>
                        <th>Categoria</th>
                </tr>
                <?php foreach ($resourcess as $i => $res): ?>
                <tr class="<?php echo fmod($i, 2) ? 'first style1' : 'first style2' ?>">
                        <td>
                                <a href="<?php echo url_for('resources/show?id='.$res->getId()) ?>">
                                        <?php echo $res->getCode() ?>
                                </a>
                        </td>
                        <td><?php echo $res->getName() ?></td>
                        <td><?php echo $res->getCatName() ?></td>

                </tr>
                <?php endforeach; ?>
        </table>
</div>


<?php slot('menu'); ?> 
  <li><a href="resources/new">Nuevo Recurso</a></li>
<?php end_slot('menu'); ?> 
